
package com.enjoyiot.module.bms.controller.admin.device.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "平台管理 - 设备创建/修改 Request VO")
@Data
public class BmsDeviceSaveReqVO {

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "关联资产ID")
    @NotNull
    private Long assetId;

    @Schema(description = "安装时间")
    private LocalDateTime installDate;

    @Schema(description = "设备状态(0-运行中；1-故障；2-禁用)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "设备状态不能为空")
    private Integer deviceStatus;

    @Schema(description = "验收状态(0-未验收；1-已验收)")
    private Integer acceptanceStatus;

    @Schema(description = "验收时间")
    private LocalDateTime acceptanceDate;

}
